package com.hntxk.cqzd.consultation.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hntxk.core.framework.model.BaseModel;
import com.hntxk.core.lang.annotation.Id;
import com.hntxk.cqzd.consultation.entity.TblDibEmp;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;


@Setter
@Getter
public class DibAndDiacModel extends BaseModel {

    @Id
    private Long dibId;
    private Long diacrisisId;
    private String dibTitle;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dibTime;
    private String dibAddress;
    private String dibEmcee;
    private String dibRecorder;
    private String dibPurpose;
    private String dibCurrent;
    private String dibFeature;
    private String dibConsult;
    private String dibTransport;
    private String dibPropose;
    private String dibOther;
    private String dibRemark;
    private Long createUserId;
    private String createUserName;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private Long updateUserId;
    private String updateUserName;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    //门诊号
    private String outpatientNo;
    //就诊时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;
    //患者姓名
    private String patientName;
    //身份证号
    private String patientCardId;
    //患者出生日期
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date patientBirthday;

    /**查询条件*/
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date startDate;
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date endDate;

    private String cardNo;
    private List<TblDibEmp> dibEmp;
}
